package com.huas.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVO {
    private Integer id;
    private Character type;
    private Integer titleId;
    private Integer pid;
    private String content;
    //所回复的目标评论用户id(根评论回复的用户id默认-1)
    private Integer toCommentUserId;
    //回复目标评论的用户名(根评论回复用户名默认null) *
    private String toCommentUserName;
    private Integer createBy;
    private LocalDateTime createTime;
    //评论人用户名 *
    private String username;
    //子树
    private List<CommentVO> children;
}
